package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 待办消息记录表
 * @author  dwq
 */
public class OrderPushMessage implements Serializable {
    private String push_message_id;

    private String order_process_id;

    private Date push_datetime;

    private String receive_user_id;
    private String order_id;
    public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	private String push_memo;

    private Integer push_status;
    
    private  OrderProcesses orderProcesses;

    public OrderProcesses getOrderProcesses() {
		return orderProcesses;
	}

	public void setOrderProcesses(OrderProcesses orderProcesses) {
		this.orderProcesses = orderProcesses;
	}

	private static final long serialVersionUID = 1L;

    public String getPush_message_id() {
        return push_message_id;
    }

    public void setPush_message_id(String push_message_id) {
        this.push_message_id = push_message_id;
    }

    public String getOrder_process_id() {
        return order_process_id;
    }

    public void setOrder_process_id(String order_process_id) {
        this.order_process_id = order_process_id;
    }

    public Date getPush_datetime() {
        return push_datetime;
    }

    public void setPush_datetime(Date push_datetime) {
        this.push_datetime = push_datetime;
    }

    public String getReceive_user_id() {
        return receive_user_id;
    }

    public void setReceive_user_id(String receive_user_id) {
        this.receive_user_id = receive_user_id;
    }

    public String getPush_memo() {
        return push_memo;
    }

    public void setPush_memo(String push_memo) {
        this.push_memo = push_memo;
    }

    public Integer getPush_status() {
        return push_status;
    }

    public void setPush_status(Integer push_status) {
        this.push_status = push_status;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderPushMessage other = (OrderPushMessage) that;
        return (this.getPush_message_id() == null ? other.getPush_message_id() == null : this.getPush_message_id().equals(other.getPush_message_id()))
            && (this.getOrder_process_id() == null ? other.getOrder_process_id() == null : this.getOrder_process_id().equals(other.getOrder_process_id()))
            && (this.getPush_datetime() == null ? other.getPush_datetime() == null : this.getPush_datetime().equals(other.getPush_datetime()))
            && (this.getReceive_user_id() == null ? other.getReceive_user_id() == null : this.getReceive_user_id().equals(other.getReceive_user_id()))
            && (this.getOrder_id() == null ? other.getOrder_id() == null : this.getOrder_id().equals(other.getOrder_id()))
            && (this.getPush_memo() == null ? other.getPush_memo() == null : this.getPush_memo().equals(other.getPush_memo()))
            && (this.getPush_status() == null ? other.getPush_status() == null : this.getPush_status().equals(other.getPush_status()))
        	&& (this.getOrderProcesses().getOrderId() == null ? other.getOrderProcesses().getOrderId() == null : this.getOrderProcesses().getOrderId().equals(other.getOrderProcesses().getOrderId()));

    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPush_message_id() == null) ? 0 : getPush_message_id().hashCode());
        result = prime * result + ((getOrder_process_id() == null) ? 0 : getOrder_process_id().hashCode());
        result = prime * result + ((getPush_datetime() == null) ? 0 : getPush_datetime().hashCode());
        result = prime * result + ((getReceive_user_id() == null) ? 0 : getReceive_user_id().hashCode());
        result = prime * result + ((getOrder_id() == null) ? 0 : getOrder_id().hashCode());
        result = prime * result + ((getPush_memo() == null) ? 0 : getPush_memo().hashCode());
        result = prime * result + ((getPush_status() == null) ? 0 : getPush_status().hashCode());
     
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", push_message_id=").append(push_message_id);
        sb.append(", order_process_id=").append(order_process_id);
        sb.append(", push_datetime=").append(push_datetime);
        sb.append(", receive_user_id=").append(receive_user_id);
        sb.append(", order_id=").append(order_id);
        sb.append(", push_memo=").append(push_memo);
        sb.append(", push_status=").append(push_status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}